package me.ycy.android.couchbase.server

import android.content.BroadcastReceiver
import android.content.{ Intent, Context }
import android.util.Log

class MediaChangeReciver extends BroadcastReceiver {
  val Tag = "CouchbaseServer"
  def onReceive(ctx: Context, intent: Intent) = {
    val i = new Intent(ctx, classOf[CouchbaseService])
    Log.d(Tag, "media change, ctx " + ctx.getPackageName)
    i.putExtra(ctx.getPackageName + "." + CouchbaseService.ExtraForce, true)
    ctx.startService(i)
  }
}
